// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

#nullable restore
namespace Elastic.Clients.Elasticsearch.Ccr
{
	public sealed partial class ShardStats
	{
		[JsonInclude]
		[JsonPropertyName("bytes_read")]
		public long BytesRead { get; init; }

		[JsonInclude]
		[JsonPropertyName("failed_read_requests")]
		public long FailedReadRequests { get; init; }

		[JsonInclude]
		[JsonPropertyName("failed_write_requests")]
		public long FailedWriteRequests { get; init; }

		[JsonInclude]
		[JsonPropertyName("fatal_exception")]
		public Elastic.Clients.Elasticsearch.ErrorCause? FatalException { get; init; }

		[JsonInclude]
		[JsonPropertyName("follower_aliases_version")]
		public long FollowerAliasesVersion { get; init; }

		[JsonInclude]
		[JsonPropertyName("follower_global_checkpoint")]
		public long FollowerGlobalCheckpoint { get; init; }

		[JsonInclude]
		[JsonPropertyName("follower_index")]
		public string FollowerIndex { get; init; }

		[JsonInclude]
		[JsonPropertyName("follower_mapping_version")]
		public long FollowerMappingVersion { get; init; }

		[JsonInclude]
		[JsonPropertyName("follower_max_seq_no")]
		public long FollowerMaxSeqNo { get; init; }

		[JsonInclude]
		[JsonPropertyName("follower_settings_version")]
		public long FollowerSettingsVersion { get; init; }

		[JsonInclude]
		[JsonPropertyName("last_requested_seq_no")]
		public long LastRequestedSeqNo { get; init; }

		[JsonInclude]
		[JsonPropertyName("leader_global_checkpoint")]
		public long LeaderGlobalCheckpoint { get; init; }

		[JsonInclude]
		[JsonPropertyName("leader_index")]
		public string LeaderIndex { get; init; }

		[JsonInclude]
		[JsonPropertyName("leader_max_seq_no")]
		public long LeaderMaxSeqNo { get; init; }

		[JsonInclude]
		[JsonPropertyName("operations_read")]
		public long OperationsRead { get; init; }

		[JsonInclude]
		[JsonPropertyName("operations_written")]
		public long OperationsWritten { get; init; }

		[JsonInclude]
		[JsonPropertyName("outstanding_read_requests")]
		public int OutstandingReadRequests { get; init; }

		[JsonInclude]
		[JsonPropertyName("outstanding_write_requests")]
		public int OutstandingWriteRequests { get; init; }

		[JsonInclude]
		[JsonPropertyName("read_exceptions")]
		public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Ccr.ReadException> ReadExceptions { get; init; }

		[JsonInclude]
		[JsonPropertyName("remote_cluster")]
		public string RemoteCluster { get; init; }

		[JsonInclude]
		[JsonPropertyName("shard_id")]
		public int ShardId { get; init; }

		[JsonInclude]
		[JsonPropertyName("successful_read_requests")]
		public long SuccessfulReadRequests { get; init; }

		[JsonInclude]
		[JsonPropertyName("successful_write_requests")]
		public long SuccessfulWriteRequests { get; init; }

		[JsonInclude]
		[JsonPropertyName("time_since_last_read")]
		public Elastic.Clients.Elasticsearch.Duration? TimeSinceLastRead { get; init; }

		[JsonInclude]
		[JsonPropertyName("time_since_last_read_millis")]
		public long TimeSinceLastReadMillis { get; init; }

		[JsonInclude]
		[JsonPropertyName("total_read_remote_exec_time")]
		public Elastic.Clients.Elasticsearch.Duration? TotalReadRemoteExecTime { get; init; }

		[JsonInclude]
		[JsonPropertyName("total_read_remote_exec_time_millis")]
		public long TotalReadRemoteExecTimeMillis { get; init; }

		[JsonInclude]
		[JsonPropertyName("total_read_time")]
		public Elastic.Clients.Elasticsearch.Duration? TotalReadTime { get; init; }

		[JsonInclude]
		[JsonPropertyName("total_read_time_millis")]
		public long TotalReadTimeMillis { get; init; }

		[JsonInclude]
		[JsonPropertyName("total_write_time")]
		public Elastic.Clients.Elasticsearch.Duration? TotalWriteTime { get; init; }

		[JsonInclude]
		[JsonPropertyName("total_write_time_millis")]
		public long TotalWriteTimeMillis { get; init; }

		[JsonInclude]
		[JsonPropertyName("write_buffer_operation_count")]
		public long WriteBufferOperationCount { get; init; }

		[JsonInclude]
		[JsonPropertyName("write_buffer_size_in_bytes")]
		public Elastic.Clients.Elasticsearch.ByteSize WriteBufferSizeInBytes { get; init; }
	}
}